import React, { useEffect, useState } from 'react'
import './index.scss'
import T from 'prop-types'
import add from '../images/add.png'
import {useHistory} from 'react-router-dom'

export default function TextContent(props) {
   let history = useHistory()
  const { text } = props
  useEffect(() => {
    // getInfo()
  }, [])

  return <div className="add-dynamic" onClick={()=>{history.push('/add-detail')}}>
    <img src={add} alt='=_='/>
  </div>
}

TextContent.propTypes = {
  text: T.string,
}
